<?php use_helper('Picasa') ?>

<div class="content_box">
  <h1>&Aacute;lbums</h1>
  <div class="right_corner">
    <a class="contentbox_btn" href="<?php echo url_for('album/new') ?>">Adicionar</a>
  </div>
  <div class="content">
<?php if (count($BolaoAlbums) == 0) : ?>
  <p>Nenhum album foi adicionado.</p>
<?php else : ?>
  <?php foreach ($BolaoAlbums as $BolaoAlbum): ?>
    <?php $album = loadAlbum($BolaoAlbum->getPicasaId()) ?>
  <a class="album" href="<?php echo url_for('album/show?id='.$BolaoAlbum->getId()) ?>">
    <div class="picasa_album">
      <img src="<?php echo $album->getIcon() ?>" /><br />
      <center><?php echo $album->getTitle() ?></center>
      <center>Fotos: <?php echo $album->getNumphotos() ?></center>
    </div>
  </a>
  <?php endforeach; ?>
<?php endif; ?>
  </div>
</div>
